package com.molichuxing.gateway.bff.permission.services.impl;

import com.molichuxing.framework.dto.Paged;
import com.molichuxing.gateway.bff.permission.convertor.Convert;
import com.molichuxing.gateway.bff.permission.entity.response.LoginLogVo;
import com.molichuxing.gateway.bff.permission.services.LoginLogBffService;
import com.molichuxing.services.infrastructure.service.LoginLogService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Map;

@Service("loginLogBffService")
public class LoginLogBffServiceImpl implements LoginLogBffService {

	private static final Logger logger = LoggerFactory.getLogger(LoginLogBffServiceImpl.class);


	@Resource
	private LoginLogService loginLogService;

	@Override
	public Paged<LoginLogVo> getLoginLogByDealerId(Map<String, Object> map, Integer pageNum, Integer pageSize) {
		return Convert.toLoginLogVoPage(loginLogService.getLoginLogByDealerId(map, pageNum, pageSize));
	}
}
